package Ch18;

import java.net.ServerSocket;
import java.net.Socket;

public class MultiServer1 {

	public static void main(String[] args) throws Exception {
		ServerSocket serverSocket = new ServerSocket(8111);
		for(int i = 0; i < 10; i++){
			Socket socket = serverSocket.accept();
			System.out.println(socket);
			socket.close();
		}
		serverSocket.close();
	}
	
}
